package com.zhuangjie.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * ”配送订单“对应的用户配送信息
 * </p>
 *
 * @author zhuangjie
 * @since 2023-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("delivery_info")
@ApiModel(value = "DeliveryInfo对象", description = "")
public class DeliveryInfo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单配送信息编号")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "对应的订单id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "收货人")
    @TableField("consignee")
    private String consignee;

    @ApiModelProperty(value = "性别(0女，1男)")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "手机号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private Double longitude;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private Double latitude;

    @ApiModelProperty(value = "省份编码")
    @TableField("province_code")
    private String provinceCode;

    @ApiModelProperty(value = "省份名称")
    @TableField("province_name")
    private String provinceName;

    @ApiModelProperty(value = "城市编码")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty(value = "城市名称")
    @TableField("city_name")
    private String cityName;

    @ApiModelProperty(value = "区县编码")
    @TableField("district_code")
    private String districtCode;

    @ApiModelProperty(value = "区县名称")
    @TableField("district_name")
    private String districtName;

    @ApiModelProperty(value = "详细地址信息")
    @TableField("detail_address")
    private String detailAddress;

    @ApiModelProperty(value = "具体地址（比如几楼几门牌号）")
    @TableField("specific_address")
    private String specificAddress;

}
